package com.jintian.smart.kernel.core.web;

public interface RestResultBuilder {

	Object data(Object data, String message);

	/**
	 * 封装响应数据
	 * 
	 * @param data
	 * @return
	 */
	default Object data(Object data) {
		return data(data, null);
	}

	/**
	 * 是否排除，即不封装
	 * 
	 * @param data
	 * @return
	 */
	default boolean except(Object data) {
		return false;
	}
}
